|
|
|
Use Object Browser to get
information about properties, methods and events. If you have any suggestion, i'm very
appreciate if you would like to send the information to milleniumsoft@fcmail.com. ActiveArea
- Step 1:
- Define which area you want to watch by creating ActiveArea
control on the position.
- Step 2:
- Double-click on ActiveArea control. Put some code on
MouseEnter event to trap mouse pointer when it step inside ActiveArea control. Put some
code on MouseExit event to trap mouse pointer when it step outside ActiveArea control.
- Step 3:
- For some reason may be you want to change mouse pointer when
it move over ActiveArea, you can do it by changing MousePointer property. If you want to
use your own icon, set MousePointer to 99 (Custom) then set MouseIcon property.
Note: You can detect whether the mouse
pointer is inside the ActiveArea by call function IsCursorInActiveArea.
ActiveCommandButton
- Step 1:
- Create control in the form.
- Step 2:
- Change it's basic property (Caption, Accelerator, TabIndex,
etc).
- Step 3:
- Set control's appearance in active state (when mouse pointer
inside ActiveCommandButton control). Set ActiveBackColor, InactiveBackColor,
InactiveForeColor, ActiveForeColor, ActiveFont, InactiveFont, ActivePicture and
InactivePicture.
- Step 4:
- Put some code to trap the events.
Note:
- Use Accelerator property to set objects hot key
- ActiveOnFocus = TRUE means when ActiveCommandButton
get focus, it always in Active state.
- Set PicturePosition property set picture position.
- TakeFocus = TRUE means ActiveCommandButton will have
the focus when it clicked.
ActiveImageButton
- Step 1:
- Create control in the form.
- Step 2:
- Set control's appearance in active state, inactive state and
clicked state. Set ActivePicture, InactivePicture, ClickedPicture, ActiveMousePointer,
InactiveMousePointer, ClickedMousePointer, ActiveMouseIcon and InactiveMouseIcon,
ClickedMouseIcon.
- Step 3:
- Put some code to trap the events.
Note:
- Use Accelerator property to set objects hot key
- set Strech = TRUE to resize the image to fit in the
control.
ActiveTextBox, ActiveComboBox, ActiveListBox,
ActiveCheckBox, ActiveOptionButton, ActiveLabel
- Step 1:
- Create control in the form.
- Step 2:
- Change it's basic property (Caption, Accelerator, TabIndex,
etc).
- Step 3:
- Set control's appearance in active state (when mouse pointer
inside control's area). Set ActiveBackColor, InactiveBackColor, ActiveBorderStyle,
InactiveBorderStyle, ActiveFont and InactiveFont.
- Step 4:
- Put some code to trap the events.
Note:
- Use Accelerator property to set objects hot key
- For controls which can get focus, you can set ActiveOnFocus
property. ActiveOnFocus = TRUE means when a control get focus, it always in
Active state.
- If EnterKeyBehavior = TRUE then pressing Enter key
will have same function as Tab key.
- Use Group property to bind some ActiveOptionButton.
- Set PicturePosition property set picture position.
|